home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993…ch: Other People's Memory / ADC Developer CD (1993-03) (''Other People's Memory'')_iso / Dev.CD Mar 93.iso / Development Platforms / Apple II / Essentials / APW Interfaces / CInclude / Scrap.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-26  |  1.8 KB  |  58 lines  |  [TEXT/MPS ]

  1. /********************************************
  2. ; File: Scrap.h
  3. ;
  4. ;
  5. ; Copyright Apple Computer, Inc. 1986-91
  6. ; All Rights Reserved
  7. ;
  8. ********************************************/
  9. #ifndef __TYPES__
  10. #include <TYPES.h>
  11. #endif
  12.  
  13. #ifndef __SCRAP__
  14. #define __SCRAP__
  15.  
  16.  
  17. /* Error Codes */
  18. #define badScrapType 0x1610  /* No scrap of this type. */
  19.  
  20. /* Scrap Types */
  21. #define textScrap 0x0000
  22. #define picScrap 0x0001
  23. #define sampledSoundScrap 0x0002
  24. #define teStyleScrap 0x0064
  25. #define iconScrap 0x4945
  26. #define maskScrap 0x8001
  27. #define colorTableScrap 0x8002
  28. #define resourceRefScrap 0x8003
  29.  
  30. typedef struct scrapInfo {
  31.     Word scrapType;
  32.     LongWord scrapSize;
  33.     Handle scrapHandle;
  34. } ;
  35. typedef struct scrapInfo scrapInfo, *scrapInfoPtr, **scrapInfoHndl;
  36.  
  37. extern pascal void GetScrap() inline(0x0D16,dispatcher);
  38. extern pascal Word GetScrapCount() inline(0x1216,dispatcher);
  39. extern pascal handle GetScrapHandle() inline(0x0E16,dispatcher);
  40. extern pascal Pointer GetScrapPath() inline(0x1016,dispatcher);
  41. extern pascal LongWord GetScrapSize() inline(0x0F16,dispatcher);
  42. extern pascal Word GetScrapState() inline(0x1316,dispatcher);
  43. extern pascal void LoadScrap() inline(0x0A16,dispatcher);
  44. extern pascal void PutScrap() inline(0x0C16,dispatcher);
  45. extern pascal void ScrapBootInit() inline(0x0116,dispatcher);
  46. extern pascal void ScrapReset() inline(0x0516,dispatcher);
  47. extern pascal void ScrapShutDown() inline(0x0316,dispatcher);
  48. extern pascal void ScrapStartUp() inline(0x0216,dispatcher);
  49. extern pascal Boolean ScrapStatus() inline(0x0616,dispatcher);
  50. extern pascal Word ScrapVersion() inline(0x0416,dispatcher);
  51. extern pascal void SetScrapPath() inline(0x1116,dispatcher);
  52. extern pascal void UnloadScrap() inline(0x0916,dispatcher);
  53. extern pascal void ZeroScrap() inline(0x0B16,dispatcher);
  54.  
  55. extern pascal void GetIndScrap() inline(0x1416,dispatcher);
  56.  
  57. #endif
  58.